package com.ht.module.sys.controller;


import com.ht.module.sys.entity.AutoDrwaView;
import com.ht.module.sys.entity.Result;
import com.ht.module.sys.service.AutoDrawService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/InsertView")
public class AutoDrawController {



    @Autowired
    private AutoDrawService autoDrawService;

    /**
     * 增加视图数据
     * @return 返回值
     */
    @PostMapping("/addView")
    public Result addView(@RequestBody AutoDrwaView autoDrwaView){


        return autoDrawService.addView(autoDrwaView);
    }

    @PostMapping("/getView")
    public Result getView(@RequestBody AutoDrwaView autoDrwaView){
        return autoDrawService.getView(autoDrwaView);
    }
}
